/*
 * @Copyright: Copyright (c) 2019
 * @Author: caizhijun
 * @Version: 1.0
 * @Date: 2018-06-27 17:22:34
 */
cc.Class({
    extends: cc.Component,

    properties: {
       anim:{
           default:null,
           type:cc.Animation
       }
    },
    init:function(game){
        this.game=game;
        this.anim.getComponent("scoreAni").init(this);

        
    },
    despawn:function(){
        this.game.scorePool.put(this.node);
    },
    play:function(){
        this.anim.play("scorePop");
    }
});
